package com.nomito.minimito.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nomito.minimito.common.utils.PageUtils;
import com.nomito.minimito.common.utils.Query;

import com.nomito.minimito.dao.SqTagDao;
import com.nomito.minimito.entity.SqTagEntity;
import com.nomito.minimito.service.SqTagService;


@Service("sqTagService")
public class SqTagServiceImpl extends ServiceImpl<SqTagDao, SqTagEntity> implements SqTagService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SqTagEntity> page = this.page(
                new Query<SqTagEntity>().getPage(params),
                new QueryWrapper<SqTagEntity>()
        );

        return new PageUtils(page);
    }

}